package cn.itcast.day05.demo03;

public class Demo01StaticField {
    public static void main(String[] args) {
        Student.room = "101教室";
        Student one = new Student("郭靖", 19);
        System.out.println("学号为:"+one.getId()+",姓名:" + one.getName() + ",年龄:" + one.getAge() + ",教室:" + one.room);
        Student two = new Student("黄蓉", 16);
        System.out.println("学号为:"+two.getId()+",姓名:" + two.getName() + ",年龄:" + two.getAge() + ",教室:" + two.room);
    }
}
